package top.wilbert.collegelink.classification.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * @author Augus
 * @email 2531496343@qq.com
 * @date 2023-02-21 09:29:59
 */
@Data
@TableName("occupation")
public class OccupationEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 职业类型id
	 */
	@TableId(value = "occupation_id",type = IdType.INPUT)
	private Integer occupationId;
	/**
	 * 父id
	 */
	private Integer pid;
	/**
	 * 职业名称
	 */
	private String name;

	@JsonInclude(JsonInclude.Include.NON_EMPTY)
	@TableField(exist = false)
	private List<OccupationEntity> children;

}
